package com.uaroadshow.finale.entity;

import org.apache.commons.lang3.StringUtils;

/**
 *
 * @author Ark
 *
 */
public class Shopping {

    /** 课程 */
    private Long productId;
    
    /** 姓名 */
    private String name;
    
    /** 性别 */
    private String gender;
    
    /** 年龄 */
    private Integer age;
    
    /** 短袖尺码 */
    private String clothesSize;
    
    /** 鞋子尺码 */
    private String shoeSize;
    
    /**
     * The default constructor
     */
    public Shopping() {
    }
    
    /**
     * @return
     */
    public boolean isValid() {
        return productId != null && 
               StringUtils.isNotBlank(name) &&
               StringUtils.isNotBlank(gender) &&
               age != null;
    }

    /**
     * @return the productId
     */
    public Long getProductId() {
        return productId;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @return the gender
     */
    public String getGender() {
        return gender;
    }

    /**
     * @return the age
     */
    public Integer getAge() {
        return age;
    }

    /**
     * @return the clothesSize
     */
    public String getClothesSize() {
        return clothesSize;
    }

    /**
     * @return the shoeSize
     */
    public String getShoeSize() {
        return shoeSize;
    }

    /**
     * @param productId the productId to set
     */
    public void setProductId(Long productId) {
        this.productId = productId;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @param gender the gender to set
     */
    public void setGender(String gender) {
        this.gender = gender;
    }

    /**
     * @param age the age to set
     */
    public void setAge(Integer age) {
        this.age = age;
    }

    /**
     * @param clothesSize the clothesSize to set
     */
    public void setClothesSize(String clothesSize) {
        this.clothesSize = clothesSize;
    }

    /**
     * @param shoeSize the shoeSize to set
     */
    public void setShoeSize(String shoeSize) {
        this.shoeSize = shoeSize;
    }
    
}